<template>
	<view>
		<view class="z-padding-32"><rich-text :nodes="info"></rich-text></view>
	</view>
</template>

<script>
import http from "../../utils/http"
export default {
	data() {
		return {
			id: '',
			info: ''
		}
	},
	onLoad(options) {
		this.id = options.id
		this.getInfo()
		uni.setNavigationBarTitle({
		    title: options.name || '详情',
		})
	},
	methods: {
		getInfo(){
		    http.get('index/gettext',{
		      id: this.id
		    }).then(res => {
		      this.info = res.data.content
		    })
		  },
	}
}
</script>

<style></style>
